import request from '@/utils/request'

export function getResourceList(data) {
  return request({
    url: '/api/user/resource/queryPageResourceList',
    method: 'post',
    data: data
  })
}

export function getResourceDetail(data) {
  return request({
    url: '/api/user/resource/getUcResourceDetail',
    method: 'post',
    data: data
  })
}

export function addResource(data) {
  return request({
    url: '/api/user/resource/saveUcResource',
    method: 'post',
    data: data
  })
}

export function delResource(data) {
  return request({
    url: '/api/user/resource/deleteUcResource',
    method: 'post',
    data: data
  })
}

export function updateResource(data) {
  return request({
    url: '/api/user/resource/updateUcResource',
    method: 'post',
    data: data
  })
}

